home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 201-225 / disk_222 / plplot / src / source.zoo / plend.c < prev    next >
C/C++ Source or Header  |  1989-05-15  |  401b  |  21 lines

  1. /* Ends a plotting session */
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include "plplot.h"
  6. #include "declare.h"
  7.  
  8. void plend()
  9. {
  10.       int dev, term, gra, level;
  11.       
  12.       glev(&level);
  13.       if (level == 0) return;
  14.       gdev(&dev,&term,&gra);
  15.       if( heap3 != NULL) free((void *)heap3);
  16.       if( heapc != NULL) free((void *)heapc);
  17.       if (gra != 0) pltext();
  18.       grtidy();
  19.       slev(0);
  20. }
  21.